$(document).ready(function() { /* Open fullscreen version using "overlay" layer. We use this to exlude arrows and area over/under them. This is more friendly for developers who wants to place clickable stuff over the iframe. Position of this div, templates/???/css/embed.css and below */ // var setWidth=(((getPageWidth()*2)+(marginSides/2))-$("#LArrow").width()-$("#RArrow").width())+'px'; // var setLeft='50%'; // var setMarginLeft='-'+((((getPageWidth()*2)+(marginSides/2))-$("#LArrow").width()-$("#RArrow").width())/2)+'px'; // $('#overlay').css({ 'width':setWidth, 'left':setLeft, 'marginLeft':setMarginLeft, 'position':'absolute', 'zIndex':'90' }); // $('#overlay').css({ 'top':0, 'right':70, 'bottom':0, 'left':70, 'position':'absolute', 'zIndex':'90' }); $('#overlay').click(function() { window.open('/?dKey=1101c6b&mode=&aP='+activePage,'','scrollbars=yes,menubar=yes,fullscreen=yes,resizable=yes,toolbar=yes,location=yes,status=yes'); }); $('#overlay').mouseover(function() { this.style.cursor='pointer'; }); });